<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
	<base href="<%=basePath%>">
    <title>优标检测网</title>
    <!-- 浏览器上显示title 图标 icon图标 -->
	<link type="image/x-icon" rel="icon" href="<%=basePath %>resource/img/minilogo.png">

	<!-- 如果想让图标出现在收藏夹中，就：  -->
	<link type="image/x-icon" rel="shortcut icon" href="<%=basePath %>resource/img/minilogo.png">
	<link type="image/x-icon" rel="bookmark" href="<%=basePath %>resource/img/minilogo.png">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="优标">
	<meta http-equiv="description" content="优标">
    <link href="<%=basePath %>portal/css/page.css" type="text/css" rel="stylesheet">
    <link href="<%=basePath %>portal/css/main.css" type="text/css" rel="stylesheet">
    <title>新闻中心列表</title>
</head>
<body>

<%@include file="p_head.jsp"%>

<div class="NCContent">
    <div class="NCNewsHead">
        <div class="MainPage">
            <div class="NCMain">
                <h2 class="NCHeadWord">咨讯 / Media Center</h2>
            </div>
        </div>
    </div>
    <div class="NCNewsList">
        <div class="MainPage">
            <div class="NCMain">
                <div class="NCNewsListNavi">
                    <ul>
                        <li><span>新闻资讯</span></li>
                        <li><a <c:if test="${empty s_category}">class="NCNewsListAct"</c:if> href="<%=basePath%>news_list.action">全部<i></i></a></li>
                        <c:forEach var="category" items="${newsCategoryList}">
                        <li><a <c:if test="${s_category == category.id}">class="NCNewsListAct"</c:if> href="<%=basePath%>news_list.action?s_category=${category.id}">${category.name}<i></i></a></li>
                        </c:forEach>
                    </ul>
                </div>
                <div class="NCNewsListContent">
                    <div class="NCNewsListContentHead"></div>
                    <div class="NCNewsListContentBody2">
                        <div class="NCNewsListsGroup" id="NCNewsListsGroup">
                        	
                        </div>
                        <div class="news_content" id="page"></div>
                    </div>
                    <div class="NCNewsListContentFoot"></div>
                </div>
                <div class="NCNewsListAds">
                    <div class="NCNewsListAdsBox"><a href="${adLeft.adUrl}" target="_blank"><img src="<%=basePath%>${adLeft.file.path}"/></a></div>
                    <div class="NCNewsListAdsBox"><a href="${adMid.adUrl}" target="_blank"><img src="<%=basePath%>${adMid.file.path}"/></a></div>
                    <div class="NCNewsListAdsBox"><a href="${adRight.adUrl}" target="_blank"><img src="<%=basePath%>${adRight.file.path}"/></a></div>
                </div>
            </div>
        </div>
    </div>
</div>
<input type="hidden" name="pageSize" id="pageSize" value="${pageSize}"/>
<input type="hidden" name="pageCount" id="pageCount" value="${pagecount}"/>
<input type="hidden" name="s_category" id="s_category" value="${s_category}"/>
<input type="hidden" name="basePath" id="basePath" value="<%=basePath%>"/>

<%@include file="p_foot.jsp"%>

</body>
<script src="<%=basePath %>portal/js/res/jquery-1.4.2.min.js"></script>
<script src="<%=basePath %>portal/js/res/jquery.myPagination.js"></script>
<script src="<%=basePath %>portal/js/res/responsiveslides.min.js"></script>
<script src="<%=basePath %>portal/js/res/jquery.lazyload.min.js"></script>
<script src="<%=basePath %>portal/js/page/base.js"></script>
<script src="<%=basePath %>portal/js/page/index.js"></script>
<script src="<%=basePath %>portal/js/page/newscenterlist.js"></script>
<SCRIPT src="<%=basePath%>/portal/js/res/jquery.lazyload.min.js" type=text/javascript></SCRIPT>
<script type="text/javascript" charset="utf-8">
      $(function() {
          $("img").lazyload({ 
		  placeholder : "<%=basePath%>/portal/images/loading.gif",
                 effect: "fadeIn"
           });  
      });
//详细：http://www.cnblogs.com/tinyphp/archive/2013/04/09/3009385.html
</script>
</html>